Home
last modified time | relevance | path

Searched hist:ffe0d5a575459ffe664b0762130b557f826fcace (Results 1 – 1 of 1) sorted by relevance

/linux/mm/
H A Dpercpu.cdiff ffe0d5a575459ffe664b0762130b557f826fcace Tue Sep 29 02:17:56 CEST 2009 Tejun Heo <tj@kernel.org> percpu: fix unit_map[] verification in pcpu_setup_first_chunk()

pcpu_setup_first_chunk() incorrectly used NR_CPUS as the impossible
unit number while unit number can equal and go over NR_CPUS with
sparse unit map. This triggers BUG_ON() spuriously on machines which
have non-power-of-two number of cpus. Use UINT_MAX instead.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-and-tested-by: Tony Vroon <tony@linx.net>